package com.pagoda.nerp.trade.common;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pagoda.nerp.trade.common.enums.ErrorCodeMappingEnums;

/**
 * Created by Jungle on 2016/12/13.
 */
@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class GridDataResult<T> extends BaseResult {

    private int totalSize;

    public GridDataResult(ErrorCodeMappingEnums errorCodeMappingEnums, T data, int totalSize) {
        super(errorCodeMappingEnums,data);
        this.totalSize = totalSize;
    }

    public GridDataResult(ErrorCodeMappingEnums errorCodeMappingEnums, T data) {
        super(errorCodeMappingEnums, data);
    }

    public int getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }
}
